/***
    Amrita ITEWS - Copyright (C) 2009 Amrita Vishwa Vidyapeetham, Amritapuri.
                                       (http://www.amrita.edu)
    ***************************************************************************
    This file is part of the Amrita ITEWS distribution.
    Amrita ITEWS is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License (version 2) as published
    by the Free Software Foundation AND MODIFIED BY the Amrita ITEWS exception.
    ***NOTE*** The exception to the GPL is included to allow you to distribute
    a combined work that includes Amrita ITEWS without being obliged to provide
    the source code for proprietary components outside of the Amrita ITEWS
    software. Amrita ITEWS is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
    Public License for more details. You should have received a copy of the GNU
    General Public License and the Amrita ITEWS license exception along with
    Amrita ITEWS if not then it can be viewed here:
    http://itews.amrita.ac.in/license.html.


    Documentation, latest information, license and contact details are at:
    http://itews.amrita.ac.in/


    Amrita ITEWS source code can be found at:
    http://code.google.com/p/itews


    The initial code-base of Amrita ITEWS was developed by Amrita Vishwa
    Vidyapeetham as part of the project titled,"Intelligent & Interactive
    Telematics using Emerging Wireless Technologies for Transport Systems
    (ITEWS)" sponsored by Technology Information Forecasting and Assessment
    Council (TIFAC), India.
***/

/*! \file config_space_misc.h
    \brief Miscellaneous Config Space Header.
*/
#ifndef CONFIG_SPACE_MISC_H_
#define CONFIG_SPACE_MISC_H_

#define CONFIG_SPACE_VAL_COUNT      14

/*#ifdef CONFIG_SPACE_DEF_VALS
const char *config_space_def_vals[]={
    "1", //enabled
    "Hello World",
    "TDU",
    "9000",
    "5000",//millisecond
    "amma",
    "amma",
    "common",
    "common",
    "TDU",
    "http://localhost:9000/directory_service",
    "0",//disabled.
    "192.168.10.99",
    "192.0.0.0"
};
#else
extern const char *config_space_def_vals[];
#endif*/
/*! \brief IP Address String Table Index. */
#define STRTBL_IP_ID                    0x00

/*! \brief Port Number String Table Index. */
#define STRTBL_PORT_ID                  0x01

/*! \brief Screen Position-X String Table Index. */
#define STRTBL_SCREEN_X_ID              0x02

/*! \brief Screen Position-Y String Table Index. */
#define STRTBL_SCREEN_Y_ID              0x03

/*! \brief  Sampling Rate String Table Index. */
#define STRTBL_SAMPLING_RATE_ID         0x04

/*! \brief First Username String Table Index. */
#define STRTBL_USERNAME1_ID             0x05

/*! \brief First User Password String Table Index. */
#define STRTBL_PASSWORD1_ID             0x06

/*! \brief Second Username String Table Index. */
#define STRTBL_USERNAME2_ID             0x07

/*! \brief Second User Password String Table Index. */
#define STRTBL_PASSWORD2_ID             0x08

/*! \brief GPRS TCP Server IP Address String Table Index. */
#define STRTBL_TCP_SERVER_IP_ID         0x09

/*! \brief GPRS TCP Server Port String Table Index. */
#define STRTBL_TCP_SERVER_PORT_ID       0x0A

/*! \brief GPRS Access Point Server String Table Index. */
#define STRTBL_GPRS_APN_SERVER_ID       0x0B

/*! \brief TDU Default Message String Table Index. */
#define STRTBL_TDU_DEFAULT_MSG_ID       0x0C

/*! \brief General User String Table Index. */
#define STRTBL_USER_ID                  0x0D

/*! \brief Station id String Table Index. */
#define STRTBL_STATION_ID               0x0E

/*! \brief TDU Default Message Enable Flag String Table Index. */
#define STRTBL_TDU_MSG_ENABLE_ID        0x0F

/*! \brief GPRS Stream Socket Recv Timeout String Table Index. */
#define STRTBL_GPRS_ST_RECV_TIMEOUT_ID  0x10

/*! \brief TU code string table id. */
#define STRTBL_TUCODE_ID                0x11

/*! \brief Directory Service URL id. */
#define STRTBL_DIR_SERVICE_URL_ID       0x12

/*! \brief IGPSU UDP Message delay string table id. */
#define STRTBL_IGPSU_UDPMSG_DELAY_ID    0x13

/*! \brief IGPSU UDP Message count string table id. */
#define STRTBL_IGPSU_UDPMSG_COUNT_ID    0x14

/*! \brief IGPSU UDP Message shutdown delay string table id. */
#define STRTBL_IGPSU_SHUTDOWN_DELAY_ID  0x15

/*! \brief IGPSU UDP Message initial delay string table id. */
#define STRTBL_IGPSU_INITIAL_DELAY_ID   0x16

#ifndef CONFIG_SPACE_TDU_H_
/*! \brief TDU Config Space Name. */
#define CONFIG_SPACE_NAME               "TDU"

/*! \brief TDU Default Message Enable Flag String Table Index. */
#define TDU_DEFAULT_MSG_IS_ENABLED      STRTBL_TDU_MSG_ENABLE_ID

/*! \brief TDU Default Message String Table Index. */
#define TDU_DEFAULT_MSG                 STRTBL_TDU_DEFAULT_MSG_ID

/*! \brief TDU Directory Service Name  String Table Index. */
#define TDU_SERVICE_NAME                0x17

/*! \brief TDU Directory Service Port String Table Index. */
#define TDU_SERVICE_PORT                0x18

/*! \brief TDU Message Display Timeout String Table Index. */
#define TDU_DISPLAY_TIMEOUT             0x19

/*! \brief Directory Service Active Flag String Table Index. */
#endif

#ifndef CONFIG_SPACE_GPRSCLGW_

#ifndef CONFIG_SPACE_NAME
    /*! \brief GPRS CL GW Config Space Name. */
    #define CONFIG_SPACE_NAME               "GPRSCLGW"
#endif
/*! \brief GPRS TCP Server IP Address String Table Index. */
#define GPRSCLGW_TCP_SERVER_IP_ID       STRTBL_TCP_SERVER_IP_ID

/*! \brief GPRS TCP Server Port String Table Index. */
#define GPRSCLGW_TCP_SERVER_PORT_ID     STRTBL_TCP_SERVER_PORT_ID

/*! \brief GPRS Access Point Server String Table Index. */
#define GPRSCLGW_GPRS_APN_SERVER_ID     STRTBL_GPRS_APN_SERVER_ID

/*! \brief GPRS Stream Socket Recv Timeout String Table Index. */
#define GPRSCLGW_ST_RECV_TIMEOUT_ID     STRTBL_GPRS_ST_RECV_TIMEOUT_ID
#endif

#endif /*CONFIG_SPACE_MISC_H_*/
